var express = require('express')
var bodyParser = require('body-parser')

var router =  require('./router')


var app = express()

// 配置 body-parser
app.use(bodyParser.urlencoded({ extended: false }))
app.use(bodyParser.json())

// 配置路由
app.use(router)

app.listen(3000, function(){
    console.log('app running at prot 3000')
})